<template>
  <div id="app" class="ml">
      <router-view/>
  </div>
</template>
<script>
import Vue from 'vue';
import axios from 'axios';
import Vueaxios from 'vue-axios';
import store from './store';

Vue.use(Vueaxios, axios)
export default {
  name: 'App',
  created () {
    store.dispatch(
      'set_PageParams',
      Object.assign(
        {},
        {
          userid: document.querySelector('#openid').value,
          openid: document.querySelector('#openid').value,
          month: document.querySelector('#month').value
        },
        { timeStr: new Date().getTime() }
      )
    )
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
@import '/static/font-icon/style.css';
@import 'common/stylus/border-1px/index.styl';
@import 'common/stylus/global.styl';

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f0f0f0f0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
